package com.sky.rabc.service;

import com.sky.rabc.dto.AddNewBackRoleDTO;
import com.sky.rabc.dto.UpdateBackRoleDTO;
import com.sky.rabc.utils.PageData;
import com.sky.rabc.vo.BackRoleListItemVO;
import com.sky.rabc.vo.BackRoleVO;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface BackRoleService {
    @Transactional
    void addNew(AddNewBackRoleDTO addNewBackRoleDTO);

    @Transactional
    void update(UpdateBackRoleDTO updateBackUserDTO);

    @Transactional
    void delRoleById(Long id);

    BackRoleVO getRoleById(Long id);

    PageData<BackRoleListItemVO> list(Integer pageNum, Integer pageSize);
}
